<%@ Page Language="VB" AutoEventWireup="false" CodeFile="formsandtemplates.aspx.vb" Inherits="formsandtemplates" MasterPageFile="~/MasterPageExpandable.master" Title="Forms and Templates" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

<div style="position:relative; left:20px; top:100px; width:920px; height:300px; overflow:auto;">

    <span style="position:relative; left:0px; top:0px; 
        font-family:MS Sans Serif, Arial, Verdana, Sans-Serif; font-size: 1em; font-weight:bold; color:#21334B;">
        <a id="pagecontent">Forms</a>
    </span>
    <br />
        
        <asp:ObjectDataSource ID="FormsObjectDataSource" DataObjectTypeName="Cdm.DataCore.CaseNotes.Forms" TypeName="Cdm.DataCore.CaseNotes.Forms" SelectMethod="ListByRole"
             UpdateMethod="UpdateInstance" runat="server" SortParameterName="sortExpr">
             <SelectParameters>
                <asp:Parameter Name="roleId" DefaultValue="34000" Type="int32" />
             </SelectParameters>
        </asp:ObjectDataSource>
             
        <asp:GridView ID="FormsGridView" runat="server" CssClass="gridOffset" Width="900px" AutoGenerateColumns="False" DataSourceID="FormsObjectDataSource" DataKeyNames="FormId" CellPadding="5" BorderColor="Gray" BorderStyle="Solid" GridLines="Vertical" EmptyDataText="No Data.">
        <HeaderStyle  CssClass="headerStyle" BackColor="#C3CAD4" BorderColor="Gray" VerticalAlign="Top" />
        <RowStyle CssClass="columnStyle" />
        <Columns>
            <asp:BoundField DataField="FormShortName" SortExpression="shortName" HeaderText="Name" AccessibleHeaderText="Name" />
            <asp:BoundField DataField="FormLongName" SortExpression="formDesc" HeaderText="Description" AccessibleHeaderText="Description" />
            <asp:BoundField DataField="DateUploaded" SortExpression="date" HeaderText="Date" AccessibleHeaderText="Date" />
            <asp:HyperLinkField AccessibleHeaderText="View this Form" Text="View" DataNavigateUrlFields="FormFileName" />
           </Columns>
            <AlternatingRowStyle BackColor="#EEF3FE" />
            <EmptyDataRowStyle CssClass="columnStyle" />
        </asp:GridView>

        <span style="position:relative; left:0px; top:10px;">
       <asp:panel id="GetFilePanel" runat="server" visible="false" cssclass="gridOffset">
           <asp:Label ID="SaveToLabel" runat="server" Text="Save to:" CssClass="adminLabel"></asp:Label>
           <asp:TextBox ID="LocalFileTextBox" runat="server" CssClass="adminForm"></asp:TextBox>
           <br />
           <asp:Button ID="DownLoadButton" runat="server" Text="Download" />
       </asp:panel>
       </span>
</div>
</asp:Content>  
